using System;
using System.Collections.Generic;
using System.Text;
using Dapper.Contrib.Extensions;
using Publicuse.Entity.AttributeUtil;
using SqlSugar;

namespace Publicuse.Entity
{
  /// <summary>
  /// 控制器执行日志模块管理
  /// </summary>
  [DBTable("`geeker-controllerexelog`", "控制器执行日志模块信息")]
  [Table("`geeker-controllerexelog`")]
  [SugarTable("`geeker-controllerexelog`")]
  public class Controllerexelog : BaseModel<long>
  {
    [Remark("请求方式")]
    public string requestmode { get; set; }

    [Remark("调用IP")]
    public string ipaddress { get; set; }

    [Remark("控制器名称")]
    public string name { get; set; }

    [Remark("控制器方法")]
    public string method { get; set; }

    [Remark("请求头信息")]
    public string hearddata { get; set; }

    [Remark("控制器参数")]
    public string parameterdata { get; set; }

    [Remark("控制器返回结果")]
    public string backresult { get; set; }

    [Remark("操作用户")]
    public string ucode { get; set; }

    [SugarColumn(IsIgnore = true)]
    public new string createuser { get; set; }

    [SugarColumn(IsIgnore = true)]
    public new string modifyuser { get; set; }

    public Controllerexelog()
    {
      this.Id = 0;
    }
  }

  /// <summary>
  /// 控制器执行日志模块查询参数
  /// </summary>
  public class ControllerexelogQuery : CommonQuery
  {
    public int Id { get; set; }

    public string name { get; set; }

    public string ucode { get; set; }

    public string method { get; set; }

    public string parameterdata { get; set; }

    public string backresult { get; set; }

    public ControllerexelogQuery()
    {
      this.exportName = GetExportName;
    }

    public static string GetExportName
    {
      get { return "controllerexelog"; }
    }
  }
}
